﻿function GetMetaString(includeScheduleDateAndTime, includeRecurrence, includeRangeOfRecurrence, includeexecution, hourlyPatternDisabled, dailyPatternDisabled,
		weeklyPatternDisabled, monthlyPatternDisabled, yearlyPatternDisabled, onetimePatternDisabled, continuousPatternDisabled, minutesPatternDisabled,
		disableDistributionWindow, disablePowerUpIfOffline, disableSubmitButtons, compactMode) {
    var a = {
        k_objectName: 'Scheduler',
        id:
						{
						    caption: 'Id',
						    dbColumn: 'id',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false
						},
        ref:
						{
						    caption: 'Ref',
						    dbColumn: 'ref',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    maxLength: 100
						},
        partitionid:
						{
						    caption: 'Partition Id',
						    dbColumn: 'partitionId',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        tranid:
						{
						    caption: 'Tran Id',
						    dbColumn: 'tranId',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        effid:
						{
						    caption: 'Effective Id',
						    dbColumn: 'effId',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        status:
						{
						    caption: 'Status',
						    dbColumn: 'status',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 8,
						    scale: 0
						},
        hasuserdata:
						{
						    caption: 'Has User Data',
						    dbColumn: 'hasUserData',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        rowdesc:
						{
						    caption: 'Description',
						    dbColumn: 'rowDesc',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    maxLength: 256
						},
        startdatefrom:
						{
						    caption: 'Start Between',
						    dbColumn: 'startDateFrom',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'DATE'
						},
        startdateto:
						{
						    caption: 'and',
						    dbColumn: 'startDateTo',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'DATE'
						},
        starttimefrom:
						{
						    caption: '',
						    dbColumn: 'startTimeFrom',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'TIME'
						},
        starttimeto:
						{
						    caption: '',
						    dbColumn: 'startTimeTo',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'TIME'
						},
        recurrencetype:
						{
						    caption: 'Recurrence',
						    dbColumn: 'recurrenceType',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'Once',
						        value: 'ONCE'
						    }, {
						        name: 'Hourly',
						        value: 'HOURLY'
						    }, {
						        name: 'Daily',
						        value: 'DAILY'
						    }, {
						        name: 'Weekly',
						        value: 'WEEKLY'
						    }, {
						        name: 'Monthly',
						        value: 'MONTHLY'
						    }, {
						        name: 'Yearly',
						        value: 'YEARLY'
						    }]
						},
        rangeofrecurrencetype:
						{
						    caption: 'Range of Recurrence',
						    dbColumn: 'rangeOfRecurrenceType',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'No end date',
						        value: '1'
						    }, {
						        name: '',
						        value: '2'
						    }, {
						        name: '',
						        value: '3'
						    }]
						},
        skipifoffline:
						{
						    caption: 'Skip if offline',
						    dbColumn: 'skipIfOffline',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        powerupifoffline:
						{
						    caption: 'Power up if offline',
						    dbColumn: 'powerUpIfOffline',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        execwhennextonline:
						{
						    caption: 'If offline, execute immediately when next online',
						    dbColumn: 'execWhenNextOnline',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        excludetimerange:
						{
						    caption: 'Exclude time range',
						    dbColumn: 'excludeTimeRange',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        recurringhoursinterval:
						{
						    caption: 'Every',
						    dbColumn: 'recurringHoursInterval',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: 'hour(s)',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 4,
						    scale: 0
						},
        recurringdaysinterval:
						{
						    caption: 'Every',
						    dbColumn: 'recurringDaysInterval',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: 'day(s)',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 4,
						    scale: 0
						},
        recurringweeksinterval:
						{
						    caption: 'Every',
						    dbColumn: 'recurringWeeksInterval',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: 'week(s) on',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 4,
						    scale: 0
						},
        sundayflag:
						{
						    caption: 'Sunday',
						    dbColumn: 'sundayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        mondayflag:
						{
						    caption: 'Monday',
						    dbColumn: 'mondayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        tuesdayflag:
						{
						    caption: 'Tuesday',
						    dbColumn: 'tuesdayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        wednesdayflag:
						{
						    caption: 'Wednesday',
						    dbColumn: 'wednesdayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        thursdayflag:
						{
						    caption: 'Thursday',
						    dbColumn: 'thursdayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        fridayflag:
						{
						    caption: 'Friday',
						    dbColumn: 'fridayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        saturdayflag:
						{
						    caption: 'Saturday',
						    dbColumn: 'saturdayFlag',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    trueValue: 'Y',
						    falseValue: 'N'
						},
        recurringmonthsinterval:
						{
						    caption: 'Every',
						    dbColumn: 'recurringMonthsInterval',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: 'month(s) on',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 4,
						    scale: 0
						},
        monthlyspecificoccurrence:
						{
						    caption: '',
						    dbColumn: 'monthlySpecificOccurrence',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'First',
						        value: 'FIRST'
						    }, {
						        name: 'Second',
						        value: 'SECOND'
						    }, {
						        name: 'Third',
						        value: 'THIRD'
						    }, {
						        name: 'Fourth',
						        value: 'FOURTH'
						    }, {
						        name: 'Last',
						        value: 'LAST'
						    }]
						},
        monthlyspecificday:
						{
						    caption: '',
						    dbColumn: 'monthlySpecificDay',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'Day',
						        value: 'DAY'
						    }, {
						        name: 'Weekday',
						        value: 'WEEKDAY'
						    }, {
						        name: 'Weekend day',
						        value: 'WEEKEND_DAY'
						    }, {
						        name: 'Sunday',
						        value: 'SUNDAY'
						    }, {
						        name: 'Monday',
						        value: 'MONDAY'
						    }, {
						        name: 'Tuesday',
						        value: 'TUESDAY'
						    }, {
						        name: 'Wednesday',
						        value: 'WEDNESDAY'
						    }, {
						        name: 'Thursday',
						        value: 'THURSDAY'
						    }, {
						        name: 'Friday',
						        value: 'FRIDAY'
						    }, {
						        name: 'Saturday',
						        value: 'SATURDAY'
						    }]
						},
        yearlyintervaltype:
						{
						    caption: '',
						    dbColumn: 'yearlyIntervalType',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'Every',
						        value: '1'
						    }, {
						        name: 'The',
						        value: '2'
						    }]
						},
        yearlyspecificmonth:
						{
						    caption: '',
						    dbColumn: 'yearlySpecificMonth',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'January',
						        value: '1'
						    }, {
						        name: 'February',
						        value: '2'
						    }, {
						        name: 'March',
						        value: '3'
						    }, {
						        name: 'April',
						        value: '4'
						    }, {
						        name: 'May',
						        value: '5'
						    }, {
						        name: 'June',
						        value: '6'
						    }, {
						        name: 'July',
						        value: '7'
						    }, {
						        name: 'August',
						        value: '8'
						    }, {
						        name: 'September',
						        value: '9'
						    }, {
						        name: 'October',
						        value: '10'
						    }, {
						        name: 'November',
						        value: '11'
						    }, {
						        name: 'December',
						        value: '12'
						    }]
						},
        yearday:
						{
						    caption: '',
						    dbColumn: 'yearDay',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 4,
						    scale: 0
						},
        'yearlyspecificoccurrence': {
            caption: '',
            dbColumn: 'yearlySpecificOccurrence',
            columnWidth: 0,
            promptBefore: '',
            promptAfter: '',
            tooltip: '',
            parameterName: '',
            sortable: false,
            filterable: false,
            visible: true,
            hidden: false,
            required: false,
            fixedColumnWidth: false,
            FieldValidValue: [{
                name: 'First',
                value: 'FIRST'
            }, {
                name: 'Second',
                value: 'SECOND'
            }, {
                name: 'Third',
                value: 'THIRD'
            }, {
                name: 'Fourth',
                value: 'FOURTH'
            }, {
                name: 'Last',
                value: 'LAST'
            }]
        },
        yearlyspecificday:
						{
						    caption: '',
						    dbColumn: 'yearlySpecificDay',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'Day',
						        value: 'DAY'
						    }, {
						        name: 'Weekday',
						        value: 'WEEKDAY'
						    }, {
						        name: 'Weekend day',
						        value: 'WEEKEND_DAY'
						    }, {
						        name: 'Sunday',
						        value: 'SUNDAY'
						    }, {
						        name: 'Monday',
						        value: 'MONDAY'
						    }, {
						        name: 'Tuesday',
						        value: 'TUESDAY'
						    }, {
						        name: 'Wednesday',
						        value: 'WEDNESDAY'
						    }, {
						        name: 'Thursday',
						        value: 'THURSDAY'
						    }, {
						        name: 'Friday',
						        value: 'FRIDAY'
						    }, {
						        name: 'Saturday',
						        value: 'SATURDAY'
						    }]
						},
        yearlyspecificmonth2:
						{
						    caption: '',
						    dbColumn: 'yearlySpecificMonth2',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    FieldValidValue: [{
						        name: 'January',
						        value: '1'
						    }, {
						        name: 'February',
						        value: '2'
						    }, {
						        name: 'March',
						        value: '3'
						    }, {
						        name: 'April',
						        value: '4'
						    }, {
						        name: 'May',
						        value: '5'
						    }, {
						        name: 'June',
						        value: '6'
						    }, {
						        name: 'July',
						        value: '7'
						    }, {
						        name: 'August',
						        value: '8'
						    }, {
						        name: 'September',
						        value: '9'
						    }, {
						        name: 'October',
						        value: '10'
						    }, {
						        name: 'November',
						        value: '11'
						    }, {
						        name: 'December',
						        value: '12'
						    }]
						},
        rangeofrecurrenceendafterinterval:
						{
						    caption: 'End After',
						    dbColumn: 'rangeOfRecurrenceEndAfterInterval',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: 'occurrences',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 4,
						    scale: 0
						},
        rangeofrecurrenceenddatetime:
						{
						    caption: '',
						    dbColumn: 'rangeOfRecurrenceEndDateTime',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'DATETIME'
						},
        excludetimefrom:
						{
						    caption: 'Excluding Date/Time',
						    dbColumn: 'excludeTimeFrom',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'TIME'
						},
        excludetimeto:
						{
						    caption: 'and',
						    dbColumn: 'excludeTimeTo',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: true,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 'TIME'
						},
        relatedobjectfk:
						{
						    caption: '',
						    dbColumn: 'relatedObjectFK',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        submittedbyfk:
						{
						    caption: '',
						    dbColumn: 'submittedByFK',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        agentguid:
						{
						    caption: '',
						    dbColumn: 'agentGuid',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        machgroupguid:
						{
						    caption: '',
						    dbColumn: 'machGroupGuid',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        orgcalendarfk:
						{
						    caption: '',
						    dbColumn: 'orgCalendarFK',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 26,
						    scale: 0
						},
        eventid:
						{
						    caption: '',
						    dbColumn: 'eventId',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    precision: 8,
						    scale: 0
						},
        includescheduledateandtime:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        includerecurrence:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        includerangeofrecurrence:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        includeexecution:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        disablehourlyrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "false"
						},
        disablehourlyrecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},
        disabledailyrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "false"
						},
        disabledailyrecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},
        disableweeklyrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "false"
						},
        disableweeklyrecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},
        disablemonthlyrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "true"
						},
        disablemonthlyrecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},  
        disableyearlyrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "true"
						},
        disableyearlyrecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},
        disablecontinuousrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "true"
						},
        disableonetimerecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        disableonetimerecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},
        disableminutesrecurrencepattern:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: "true"
						},
        disableminutesrecurrencepatternspecified:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: 'false'
						},
        disabledistributionwindow:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        disablepowerupifoffline:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: ''
						},
        disablesubmitbuttons:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: disableSubmitButtons
						},
        compactmode:
						{
						    caption: '',
						    dbColumn: '',
						    columnWidth: 0,
						    promptBefore: '',
						    promptAfter: '',
						    tooltip: '',
						    parameterName: '',
						    sortable: false,
						    filterable: false,
						    visible: false,
						    hidden: false,
						    required: false,
						    fixedColumnWidth: false,
						    defaultValue: compactMode
						}
    }
    return a;
}

function GetDataConfig() {

    var object = {
        recurrencetype: "ONCE",
        recurringhoursinterval: "1",
        recurringdaysinterval: "1",
        recurringweeksinterval: "1",
        recurringmonthsinterval: "1",
        monthlyintervaltype: "0",
        monthday: "1",
        monthlyspecificoccurrence: "FIRST",
        monthlyspecificday: "DAY",
        yearlyintervaltype: "0",
        yearlyspecificmonth: "1",
        yearday:"1",
        yearlyspecificoccurrence: "FIRST",
        yearlyspecificday: "DAY",
        yearlyspecificmonth2: "1",
        rangeofrecurrencetype: "1",
        rangeofrecurrenceendafterinterval: "15",
        skipifoffline: "N",
        powerupifoffline: "N",
        execwhennextonline: "Y",
        excludetimerange: "N",
        excludetimefrom: "12:00 AM",
        excludetimeto: "12:00 AM",
        starttimefrom: "",
        startdatefrom: "",
        starttimeto: "",
        startdateto: ""
        }   

        return object;
    }


    function schedulerSubmitCallback(schedularData, agentGuid) {        
        Ext.Ajax.request({
                    url: '/kaseya-mvc3/LanWatch/ScheduleScan',
            type: 'POST',
            params: { data: schedularData, agentGuid: agentGuid },
            success: function (a, b) {                       
            },
            failure: function () { alert("Failed"); }
        });        
    }	

